package oopfinal.a01finaldemo1;

public class Test1 {
    public static void main(String[] args) {
        final double PI = 3.14;
        final Student S = new Student("张三", 18);
        S.setAge(19);
        System.out.println(S.getAge());
        final int[] arr = {1, 2, 3, 4, 5};
        arr[0] = 100;
        System.out.println(arr[0]);
    }
}

class Student {
    private String name;
    private int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}